﻿cmake_minimum_required(VERSION 3.14)

project(grpc-cpp)

#包含CMake路径
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)


SET(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/install/${CMAKE_BUILD_TYPE})


#设置通用的搜索文件
set(SourceFiles "./*.h" "./*.hpp" "./*.cpp" "./*.ui" "./*.qml" "./*.qrc" "./*.json" "./*.js" "./*.xlsx")

#设置输出路径
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

#设定库文件后缀名
set(CMAKE_DEBUG_POSTFIX "d")

add_subdirectory(src)

